<#include "/layout/layout.ftl">
<#import "/layout/macro.ftl" as macro>
<#assign css>
<style>
</style>
</#assign>
<#assign js>
<script>
	function del(id) {
		layer.confirm('确定删除吗?', {icon: 3, title: '提示'}, function (index) {
			$.ajax({
				type: "POST",
				dataType: "json",
				url: "/bootstrapimg/delete/" + id,
				success: function (res) {
					layer.msg(res.message, {time: 100}, function () {
						location.reload();
					});
				}
			});
		});
	}
</script>
</#assign>
<@layout title="APP引导页设置管理" active="bootstrapimg">
<!-- Content Header (Page header) -->
<section class="content-header">
	<h1>
        APP引导页设置管理
	</h1>
	<ol class="breadcrumb">
		<li><a href="/"><i class="fa fa-home"></i> 管理后台</a></li>
		<li class="active"><i class="fa fa-table"></i> APP启动页引导页设置列表</li>
	</ol>
</section>

<!-- Main content -->
<section class="content">
	<!-- Default box -->
	<div class="box box-primary">
		<div class="box-header">

            <#--<form class="form-horizontal form-edit" method="post" action="/bootstrapimg/index" id="form">-->
                <#--<div class="form-group" style="margin-top:10px;">-->
                    <#--<div class="col-sm-2">-->
                        <#--<input  placeholder="请输入备注描述" id="notes" name="notes" value="${notes !}" class="form-control" type="text"  >-->
                    <#--</div>-->

                    <#--<div class="btn-group">-->
                        <#--<button type="submit" class="btn btn-primary" data-btn-type="search">查询</button>-->
                        <#--<button type="button" class="btn btn-default" data-btn-type="reset" onclick="javascript:$('#form')[0].reset();">重置</button>-->
                    <#--</div>-->

				<#--</div>-->


			<#--</form>-->

			<#--<@shiro.hasPermission name="content:bootstrapimg:add">-->
			<#--<a class="btn btn-sm btn-success" href="/bootstrapimg/add">新增</a>-->
			<#--</@shiro.hasPermission>-->

		</div>
		<div class="box-body">
			<table class="table table-striped">
				<tr>
					<th>id</th>
					<th>类型</th>
					<th>上次修改时间</th>
					<th>操作</th>
				</tr>
                <#list pageInfo.list as bootstrap>
                <tr>
					<td>${bootstrap.id}</td>
					<td>
						<#if bootstrap.type==0>
							启动页
						<#else >
							引导页
						</#if>
					</td>
					<td>${(bootstrap.updateAt?string('yyyy-MM-dd HH:mm:ss'))!}</td>
					<td>
					<@shiro.hasPermission name="content:bootstrapimg:detail">
					<a class="btn btn-sm btn-info" href="/bootstrapimg/detail/${bootstrap.id}" data-btn-type="edit">查看</a>
					</@shiro.hasPermission>
                    <@shiro.hasPermission name="content:bootstrapimg:edit">
                        <a class="btn btn-sm btn-primary" href="/bootstrapimg/edit/${bootstrap.id}" data-btn-type="edit">编辑</a>
                    </@shiro.hasPermission>

					</td>
				</tr>
                </#list>
			</table>
		</div>
		<!-- /.box-body -->
		<div class="box-footer clearfix">
            <@macro.page pageInfo=pageInfo url="/bootstrapimg/index?" />
		</div>
	</div>
	<!-- /.box -->

</section>
<!-- /.content -->
</@layout>